<{Tinclude "commom/admin_header"}>
 <section id="container" >
      
      <!--顶部-->
      <{Tinclude"commom/admin_inner_header"}>
      <!--顶部-->
      
       <{Tinclude"commom/admin_left_menu"}>
       
       <section id="main-content">
          <section class="wrapper">
          	<h3><i class="<{if $___menuinfo["iconclass"]}><{$___menuinfo["iconclass"]}><{else}>fa fa-list-ul<{/if}>"></i><{$___menuinfo["base_name"]}></h3>
                <div class="row mt">
                    <div class="col-md-12">
                       <div class="form-panel">
                           
                           <form class="form" role="form" action="<{echo Common::RewriteUrl($jp_arg["c"],$jp_arg["a"]);}>"  method="post" enctype="multipart/form-data">  
                               <div class="form-group input-group col-md-3">
   
                <span class="input-group-addon" id="basic-addon1">房间编号:</span>
                <input type="text" name="room_no" class="form-control" placeholder="302" aria-describedby="basic-addon1">

           </div>
                          
   <div class="form-group form-inline menuparent">
  <select class="form-control build_id" name="build_id">
  
           <option value="0">选择位于</option>
           <{foreach $loulist as $val}>
           <option value="<{$val["id"]}>"><{$val["base_name"]}></option>
           <{/foreach}>
      
         
  </select>
       <span class="menuchildrenall">
           
       </span>
     
     
 </div>
                               
           <div class="form-group input-group col-md-12 col-xs-12 minheight">
               <label for="exampleInputFile">上传主图片</label>
               <input type="file" id="exampleInputFile" name="image" />
           </div>
                            
                               <div class="form-group input-group col-md-12">
                                   <input type="hidden" name="imageids" />
                                   <input type="button" class="btn btn-primary" value="上传附图" data-toggle="modal" data-target="#ajax_upload_mfile" />  
                               </div>
                             
                               
<div class="form-group input-group col-md-3">
<span class="input-group-addon" id="basic-addon1">租金:</span>
<input type="text" name="rent"  class="form-control" placeholder="100.00" value="100.00" aria-describedby="basic-addon1">
<span class="input-group-addon" id="basic-addon2">(元/每月)</span>
</div>
                                 
<div class="form-group input-group col-md-3">
<span class="input-group-addon" id="basic-addon1">压金:</span>
<input type="text" name="deposit"  class="form-control" placeholder="100.00" value="100.00" aria-describedby="basic-addon1">
<span class="input-group-addon" id="basic-addon2">(元/每月)</span>
</div>
                                 
                               
                               
<div class="form-group input-group col-md-12 col-xs-12 minheight">
          <textarea class="form-control" name="desc" placeholder="简单描述" rows="3"></textarea>
          </div>   
                 
            <input class="btn btn-primary btn-block" type="submit" name="submit" value="提交">
                   
                               
                           </form>
                           
                           
                           
                       </div>
                    </div>
                        
                </div>
          </section>
       </section>
 </section>
    <{Tinclude "commom/ajax_upload_mfile"}>
<script>
    $('.build_id').bind('change', function () {
         var id=$(this).val();
         $.post("<{echo Common::RewriteUrl("Building","public_ajax_getlaynum");}>",{"id":id},function(data){
             if(data.status==1){
                 var tag='<select class="form-control"  name="layer_id">';
                 var tag2="</select>";
                 var intag="";
                 for(var i=1;i<=data.layer_num;i++){
                    intag+=" <option value='"+i+"'>"+i+"楼</option>"; 
                 }
                 $(".menuchildrenall").html(tag+intag+tag2);
                 
             }
         },"json");
        
    });
    
</script>
<{Tinclude"commom/admin_footer"}>